<html>

<head>

    <style>
        .active {
            color: red;
        }
    </style>
</head>

<body>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <div id="app">
       

    </div>
    <script>
        var app = new Vue({
            el: "#app",
            data: {
                count:60
            },
            //计算属性
            computed:{
                result(){
                    if(this.count>=90){
                        return "优秀";
                    }else if(this.count>=80){
                        return "良好"
                    }else if(this.count>=60){
                        return "及格";
                    }else{
                        return "不及格";
                    }
                }
            },
            methods: {
                doIt: function (p1, p2) {
                    console.info('做IT')
                    console.info(p1 + p2)
                }
            
            }
        })
    </script>
</body>

</html>